#include <iostream>
using namespace std;
class Time
{
public:
    void set_time(void)
    {
        cin >> t.hour;
        cin >> t.minute;
        cin >> t.sec;
    }
    void show_time(void)
    {
        cout << t.hour << ":" << t.minute << ":" << t.sec << endl;
    }

private:
    int hour;
    int minute;
    int sec;
};
Time t;
int main()
{

    t.set_time();
    t.show_time();
    system("pause");
}
